/**
 * Project: topdt-jbpm
 * Copyright 2013  Top Digital Technology  Co. Ltd.
 * All right reserved.
 */
package com.topdt.jbpm.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thx.common.service.BaseManager;
import com.topdt.jbpm.dao.ActivityDao;
import com.topdt.jbpm.model.Activity;

/**
 * 建立日期 : 2013-4-25 下午12:01:32<br>
 * 作者 : balance<br>
 * 模块 : <br>
 * 描述 : <br>
 * 修改历史: 序号 日期 修改人 修改原因 <br>
 * 1 <br>
 * 2 <br>
 */

@Service
@Transactional(readOnly = true)
public class ActivityService extends BaseManager<Activity> {

	@Autowired
	private ActivityDao activityDao;

	public List<Activity> getActivityByFlow(String flowId, String flowKey) {
		return activityDao.getActivityByFlow(flowId,flowKey);
	}

	public List<Activity> findByFlowDetailId(String flowDetailId) {
		return activityDao.findByFlowDetailId(flowDetailId);
	}

}
